package com.zy.openchat.core.model.message;

import com.google.gson.annotations.SerializedName;

public class SearchMessagesFilter {

    @SerializedName("@type")
    public String type;


    public SearchMessagesFilter(String type) {
        this.type = type;
    }

    public static SearchMessagesFilter attachUserHome(int index){
        SearchMessagesFilter filters = null;
        switch (index){
            case 0:
                filters = new SearchMessagesFilter("searchMessagesFilterPhotoAndVideo");
                break;
            case 1:
                filters = new SearchMessagesFilter("searchMessagesFilterDocument");
                break;
            case 2:
                filters = new SearchMessagesFilter("searchMessagesFilterAudio");
                break;
            case 3:
                filters = new SearchMessagesFilter("searchMessagesFilterUrl");
                break;
            case 4:
                filters = new SearchMessagesFilter("searchMessagesFilterAnimation");
                break;
        }
        return filters;
    }


}
